Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiny fixes found while preparing next session of the advanced course #493

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

sponce
Copy link
Contributor

@sponce sponce commented Oct 11, 2023

No description provided.

@sponce sponce force-pushed the sponce_fixes_autumn_24 branch from ab8b966 to 8d2bcdf Compare October 11, 2023 12:51
Copy link
Contributor

@bernhardmgruber bernhardmgruber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit, otherwise good!

std::is_floating_point<UserType>::value,
std::is_floating_point_v<UserType>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requires C++17 now, but the slide says 11. I guess this was the reason, the former version was used. But I totally agree that we should teach the students to use the _v traits!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well spotted ! I added a comment "C++17" on the given line, leaving 11 at the top as it targets the static_assert there.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parfait!

@sponce sponce force-pushed the sponce_fixes_autumn_24 branch from 8d2bcdf to 102cc15 Compare October 11, 2023 13:08
@sponce sponce merged commit 9f4ca2e into master Oct 11, 2023
6 checks passed
@bernhardmgruber bernhardmgruber deleted the sponce_fixes_autumn_24 branch October 11, 2023 13:17
@bernhardmgruber bernhardmgruber restored the sponce_fixes_autumn_24 branch October 11, 2023 13:17
@sponce sponce deleted the sponce_fixes_autumn_24 branch October 11, 2023 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants